<div class="yiiForm">
	<?php echo CHtml::beginForm('','post',array('enctype'=>'multipart/form-data')); ?>
	
	<div class="lista6">
	<p>Los campos con <span class="required">*</span> son requeridos.</p>
	<?php echo CHtml::errorSummary($model); ?>
	</div>
	
    <div class="lista2">
      <table width="100%" cellspacing="0" cellpadding="0" border=0>
        <tr>
          <td width="20" rowspan="6">&nbsp;</td>
          <td height="5" colspan="2">&nbsp;</td>
        </tr>
        <tr>
        
          <td  class="margen1"><?php echo CHtml::activeLabelEx($model,'usr_profile'); ?></td>
                                                                                           
          <td align="left">
          <?php if(Yii::app()->user->getState("usr_profile") == User::ROLE_ADMIN): ?>
          	<select name="profile">
          		<option value="admin" <?php if($model->usr_profile=='admin')echo 'selected="selected"';?>>Administrador</option>
          		<option value="editor" <?php if($model->usr_profile=='editor')echo 'selected="selected"';?>>Editor</option>
          		<option value="moderator" <?php if($model->usr_profile=='moderator')echo 'selected="selected"';?>>Moderador</option>
          	</select>
          <?php else: ?>
              <?php echo CHtml::activeTextField($model,'usr_profile',array('size'=>15,'maxlength'=>15,'class'=>'campo_texto','readonly'=>'readonly')); ?>
          <?php endif; ?>
          </td>
        </tr>
        <tr>
          <td  class="margen1"><?php echo CHtml::activeLabelEx($model,'usr_nickname'); ?></td>
          <td align="left"><?php echo CHtml::activeTextField($model,'usr_nickname',array('size'=>15,'maxlength'=>15,'class'=>'campo_texto')); ?></td>
        </tr>
        <tr>
          <td width="80" height="30" class="margen1"><?php echo CHtml::activeLabelEx($model,'usr_password'); ?></td>
          <td><?php echo CHtml::activePasswordField($model,'usr_password',array('size'=>60,'maxlength'=>150,'class'=>'campo_texto')); ?></td>
        </tr>
        <tr>
          <td width="80" height="30" class="margen1"><?php echo CHtml::activeLabelEx($model,'usr_email'); ?></td>
          <td><?php echo CHtml::activeTextField($model,'usr_email',array('size'=>60,'maxlength'=>150,'class'=>'campo_texto')); ?></td>
        </tr>
        <tr>
          <td width="80" height="30" class="margen1"><?php echo CHtml::activeLabelEx($model,'usr_name'); ?></td>
          <td><?php echo CHtml::activeTextField($model,'usr_name',array('size'=>60,'maxlength'=>100,'class'=>'campo_texto')); ?></td>
        </tr>
        <tr>
          <td height="5"></td>
          <td>&nbsp;</td>
        </tr>
      </table>
    </div>
    <div class="botones_finales2"><?php echo CHtml::linkButton('Aceptar',array('class'=>'botones_grises2')); ?><?php echo CHtml::link('Cancelar',array('admin'),array('class'=>'botones_grises2')); ?></div>
	<?php echo CHtml::endForm(); ?>
</div><!-- yiiForm -->